﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Topshelf;

namespace TopShelfDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            HostFactory.Run(x =>
                       {
                           x.Service<ServiceRunner>();

                           x.RunAsLocalSystem();

                           x.SetDescription("Quartz+TopShelf实现Windows服务作业调度的一个示例Demo");
                           x.SetDisplayName("QuartzTopShelfDemo服务");
                           x.SetServiceName("QuartzTopShelfDemoService");

                           x.EnablePauseAndContinue();
                       });
        }
    }
}
